Package-level declarations
Types
Inherited properties
Gets the approximate position of the item in the staff, when held my an entity.
Gets the approximate position of the staff's tip, when held by an entity.
Calculates the camera's upward direction based on Entity.getFacing and Entity.getHorizontalFacing.
Checks if the user has sufficient space in front to use the staff.
Returns if the given item has a registered handler when inserted into a staff.
Checks if the player's attack is on cooldown.
Checks if an item is added the given staff item stack.
Gets the item inserted into the given staff item stack.
Gets the item stack inserted into the given staff item stack. The value returned MUST NOT be modified in any way, use mutableItemStackInStaff instead.
Gets or sets a copy of the item stack inserted into the given staff item stack. The value returned or passed in can be freely modified.
Returns the registered staff handler of the given item if available.
Returns the registered staff handler of the given item if available, StaffHandler.Default otherwise.
Functions
Creates an EntityAttributeModifier, which changes the attack damage to totalAttackDamage after subtracting the player's base attack damage.
Creates an EntityAttributeModifier, which changes the attack speed to totalAttackSpeed after subtracting the player's base attack speed.
Sorts input using counting sort into a new array and returns it. The input array will not be changed.
Creates a BlockBox from encompassing the given positions.
Creates a BlockBox from encompassing the given vectors.
Creates an EntityAttributeModifier, which changes the attack speed to the reciprocal of totalEquipTime after subtracting the player's base attack speed.
Creates an EntityAttributeModifier, which increases the interaction range by additionalRange.
Inherited functions
Utility function to create a DamageSource.
Gets the spawn position if the given entity has enough space to spawn at the given position, or null
, if the position is obstructed by blocks.
Checks if the given item is on cooldown and cannot be used.